<template>
	<view class="chiken-container">
		<view class="panel">
			<view class="wordItem">毒鸡汤</view>
			<view>
				{{this.content}}
			</view>
		</view>
	</view>
</template>

<script>
	import service from '../../utils/http.js'
	export default {
		data() {
			return {
				info: {},
				content: '鸡汤没有啦~~~'
			};
		},
		onLoad() {
			this.getChickenSoup()
		},
		methods: {
			getChickenSoup() {
				service.get('/api/SoulWords').then(response => {
					if (response.msg == 'success') {
						this.content = response.result.content
					}
				}).catch(error => {
					console.log(error)
				})
			}
		}
	}
</script>

<style lang="scss">
	.chiken-container{
		display: flex;
		justify-content: center;
		.wordItem{
			display: flex;
			justify-content: center;
			line-height: 50px;
			padding-top: 20px;
		}
	}
</style>